package com.csist.mapper.po.basicInfoModule;

import com.csist.pojo.po.basicInfoModule.SpecificationMajorInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpecificationMajorInfoMapper {
    /**
     * 查询专修专业信息
     * @return
     */
    List<SpecificationMajorInfo> findAll();

    /**
     * 根据id查询专修专业信息
     * @param id
     * @return
     */
    SpecificationMajorInfo getSpecificationMajorInfoById(@Param("id") int id);

    /**
     * 根据条件模糊查询
     * @param specificationMajorInfo
     * @return
     */
    List<SpecificationMajorInfo> findSpecificationMajorInfoFuzzy(SpecificationMajorInfo specificationMajorInfo);

    /**
     * 根据条件查询
     * @param specificationMajorInfo
     * @return
     */
    List<SpecificationMajorInfo> findSpecificationMajorInfo(SpecificationMajorInfo specificationMajorInfo);

    /**
     * 添加专修专业
     *
     * @param specificationMajorInfo
     * @return
     */
     int addSpecificationMajorInfo(SpecificationMajorInfo specificationMajorInfo);

    /**
     * 修改专修专业信息
     * @param specificationMajorInfo
     * @return
     */
    int updateSpecificationMajorInfo(SpecificationMajorInfo specificationMajorInfo);

    /**
     * 修改专修专业状态(逻辑删除)
     * @param smiId
     * @return
     */
    int updateSpecificationMajorInfoByState(int smiId);

    /**
     * 删除专修专业
     * @param  smiId
     * @return
     */
    int deleteSpecificationMajorInfo(int  smiId);
}
